home *** CD-ROM | disk | FTP | other *** search
/ Aminet 33 / Aminet 33 - October 1999.iso / Aminet / dev / basic / UDP_Chat.readme < prev    next >
Encoding:
Text File  |  1999-09-06  |  4.9 KB  |  91 lines

  1. Short:    UDPfuncsV2.6 for Blitz-good for Net games
  2. Author:   anton@ww.co.nz (Anton Reinauer)
  3. Uploader: anton@ww.co.nz (Anton Reinauer)
  4. Version:  2.6
  5. Type:     dev/basic
  6. Requires: dev/basic/TCP-to-Blitz.lha, WB 2.0+, min 1.5 meg mem, TCP stack
  7. -Ie:      Miami, dev/basic/NewCommandSet.lha. 
  8.  
  9.   These are functions to use the UDP protocol for multiplayer internet
  10. games in Blitz2. Also there is a small IRC-like chat program which is a 
  11. good Net game communications test-bed. It checks wether packets have 
  12. arrived at their destination by using an acknowledgement system, and 
  13. resends packets if necessary (it is also able to send packets unreliably
  14. if wanted). Also it can also act as either a Server or Client. It has full
  15. Connect/Disconnect routines- each player is informed of the new player and
  16. starts sending any messages to the new player, as the communication is still
  17. Peer-To-Peer. Players are automatically disconnected by the Server if they
  18. can't be contacted for a certain amount of time.
  19.   There are routines to make sure time is synched on all machines. It has
  20. a good independant interface for your program (well there's one last thing
  21. to be done :).
  22.   There's a few TCP functions as well, like converting an ASCII address to
  23. numerical (long), and vice-versa, getting your local IP address etc. Some 
  24. of the log-in and message protocols could be used in TCP games as well.
  25.   It has an Arexx port to allow you to automatically connect to other
  26. UDP_Chat programs from AmiComSys, IRC, StrICQ etc- you just have to pass a
  27. host address to UDP_Chat. 
  28.  
  29.   UDP is more appropriate for fast action games, like Doom clones,
  30. XWing clones, or platformers, maze games etc; anything that needs small 
  31. lags (ping times), to remain playable over the Internet/LAN.
  32.  
  33.                          What's new in V2.6!
  34.  
  35.  Version 2.6  25/08/1999
  36. ------------
  37.   Changed the directory name to UDP_Chat instead of UDPtest, as it's no
  38. longer just a small test program ;-)
  39.   Changed packet numbering for Reliable packets to a two-dimensional
  40. array (player,message), so packets to each player are tracked separately,
  41. instead of all messages being in one array. Overall this has sped things
  42. up slightly, and has made the code much tidier in places. Also, I can now
  43. easily put in checking for out-of-order incoming packets, and ask for a
  44. resend. 
  45.   Added "Putting the UDP Funcs into your game" item under the UDP Funcs
  46. section- about bloody time! :) 
  47.   Net_protocol_header is V0.6, UDPHeader is V1.3, UDPFuncs are V1.5 
  48. - the UDP socket buffer is now cleared when reconnecting.  
  49.   Added in 'player_info.info' array to store information for sending to 
  50. other players, so it's not hard-coded into the Funcs anymore. See
  51. "Putting the UDP funcs in your game" for details.
  52.   The Client's system time is now synched with the Server's (a fiendish
  53. bit of coding that was! :) The system time can be accessed on any machine
  54. by the global variable `system_time.l'. Button '3' now prints out your
  55. current system time.
  56.   The parameters passed to Send_Reliable_Message{} are now:
  57. Send_Reliable_Message{address.l,data_length.w,player.w,protocol,ordering}
  58. and Send_Unreliable_Message{address.l,data_length.w,player,protocol}
  59. for Send_Unreliable_Message{}. This is a setup for later optimisations
  60. I'll be doing. So now the address and length of memory to be sent is
  61. passed instead of the String itself. Also I've set the Functions up to
  62. allow for the Client-Server protocol in Unreliable messages (it's also set
  63. up in Reliable), and to allow you to specify wether Reliable packets have
  64. to be received ordered or can be received unordered. Neither of these
  65. additions have been implemented yet though.
  66. See "Putting the UDP funcs into your game" for more details.
  67.   Note: the Arexx routines cause an Enforcer hit, and the ReadUDP Function
  68. causes a couple- I'll have a look at them soon! :)
  69.  
  70.  
  71. ============================= Archive contents =============================
  72.  
  73. Original  Packed Ratio    Date     Time    Name
  74. -------- ------- ----- --------- --------  -------------
  75.    22203    8736 60.6% 23-Apr-98 12:58:06 +Lag problems in Net games 
  76.     3498    1187 66.0% 16-Jul-99 12:31:18 +Net_protocol_header.bb2
  77.      396     223 43.6% 16-Jul-99 12:09:16 +Net_protocol_header.bb2.info
  78.   346574   94153 72.8% 25-Aug-99 13:42:36 +Old_Stuff.lha
  79.      267     196 26.5% 12-May-98 22:17:14 +Quit_UDP_Chat.rexx
  80.     1290     666 48.3% 29-Jul-98 15:04:56 +UDP_Chat.rexx
  81.    49635   19239 61.2% 25-Aug-99 12:46:48 +UDP-Examples.guide
  82.      464     227 51.0% 16-Aug-99 11:43:52 +UDP-Examples.guide.info
  83.    78345   19156 75.5% 25-Aug-99 13:02:48 +UDP_ChatV2.6.asc
  84.     1242     185 85.1% 25-Aug-99 12:47:04 +UDP_ChatV2.6.bb2.xtra
  85.     6579    2325 64.6% 03-Aug-99 20:30:32 +UDPFuncs.bb2
  86.      396     221 44.1% 16-Jul-99 12:09:16 +UDPFuncs.bb2.info
  87.     1537     656 57.3% 15-Aug-99 14:23:00 +UDPHeader.bb2
  88.      396     221 44.1% 18-Jul-99 20:36:12 +UDPHeader.bb2.info
  89. -------- ------- ----- --------- --------
  90.   512822  147391 71.2% 26-Aug-99 20:45:48   14 files
  91.